hackerrank java instanceof keyword problem

welcome to shbcf.ru